<!-- [Left menu] start -->
<div class="leftmenu">

	<h1 id="pageinfo"> </h1>
	
	<ul id="tabs" class="quickmenu">
		<li><a href="#one"><?php echo __("Album settings", "album") ?></a></li>
		<!-- <li><a href="#two">Theme settings</a></li> -->
	</ul>
	<div class="quickend"></div>

</div>
<!-- [Left menu] end -->

<!-- [Content] start -->
<div class="content slim">

<h1 id="settings"><?=__("Settings", $this->template['module'])?></h1>

<form class="settings" action="<?=site_url('admin/album/settings')?>" method="post" accept-charset="utf-8">
		
		<ul>
			<li><input type="submit" name="submit" value="<?php echo __("Save Settings", "album") ?>" class="input-submit" /></li>
			<li><a href="<?=site_url('admin')?>" class="input-submit last"><?php echo __("Cancel", "album") ?></a></li>
		</ul>
		
		<br class="clearfloat" />

		<hr />
		
		<?php if ($notice = $this->session->flashdata('notification')):?>
		<p class="notice"><?=$notice;?></p>
		<?php endif;?>
		
		<p><?=__("Use this page to change the settings for the album module.", $this->template['module'])?></p>
		
		<div id="one">
			<table>
			<tbody>
			<tr>
			<th valign="top"><?php _e("Storage:", "album") ?></th>
			<td valign="top">
			<?php foreach ($storages as $storage):?>
			<?php $storage = str_replace('.php', '', $storage);?>
			<input type='radio' name='storage' value="<?php echo $storage ?>" <?php if(isset($this->album->album_settings->storage) && $this->album->album_settings->storage == $storage) echo " checked "; ?> /><?php echo ucfirst($storage) ?> - <?php echo anchor('admin/album/settings/' . $storage, __("Configuration", "album")) ?><br />
			<?php endforeach; ?>
			</td>
			</tr>
			<tr>
			<th valign="top"><?php _e("Column numbers:", "album") ?></th>
			<td valign="top"><input type="text" name="album_col_num" value="<?=isset($this->album->album_settings->album_col_num)?$this->album->album_settings->album_col_num:"2"?>" id="album_col_num" class="input-text" /></td>
			</tr>
			<tr>
			<th valign="top"><?php _e("Users can create album:", "album") ?></th>
			<td valign="top">
			<input type="radio" name="user_can_create" value="1" <? if(isset($this->album->album_settings->user_can_create) && $this->album->album_settings->user_can_create == 1) echo "checked" ?> class="input-radio" /> <?php echo __("Yes", "album") ?><br />
			<input type="radio" name="user_can_create" value="0" <? if(isset($this->album->album_settings->user_can_create) && $this->album->album_settings->user_can_create == 0) echo "checked"?> class="input-radio" /> <?php echo __("No", "album") ?>
			</td>
			</tr>
			<tr>
			<th valign="top"><?php _e("Show album info:", "album") ?></th>
			<td valign="top">
			<input type="radio" name="show_meta" value="Y" <? if(isset($this->album->album_settings->show_meta) && $this->album->album_settings->show_meta == 'Y') echo "checked" ?> class="input-radio" /> <?php echo __("Yes", "album") ?><br />
			<input type="radio" name="show_meta" value="N" <? if(isset($this->album->album_settings->show_meta) && $this->album->album_settings->show_meta == 'N') echo "checked"?> class="input-radio" /> <?php echo __("No", "album") ?>
			
			</td>
			</tr>
			</tbody>
			</table>
</div>
	</form>
</div>
<!-- [Content] end -->
